package denver.EandSlab.databasetest;

import android.os.Bundle;
import android.app.Activity;
import android.content.*;
import android.view.*;
import android.widget.*;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		//call back function _ button001 _ "See The Content Table"
		Button btn = (Button)findViewById(R.id.button001);
		btn.setOnClickListener(new Button.OnClickListener(){
			public void onClick(View v){
				Intent intent = new Intent(MainActivity.this, ContentTableView.class);
				//intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);//add falg into intent (erasing history of activity) [have to add this line with going to MainActivity]
				startActivity(intent);				
			}
		}
		); //end button001		
	}//end onCreate

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
